package PMIRPConstDefs;

/**
 * Generated from IDL union "Hysteresis".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class Hysteresis
	implements org.omg.CORBA.portable.IDLEntity
{
	private boolean discriminator;
	private int long_value;
	private float float_value;

	public Hysteresis ()
	{
	}

	public boolean discriminator ()
	{
		return discriminator;
	}

	public int long_value ()
	{
		if (discriminator != true)
			throw new org.omg.CORBA.BAD_OPERATION();
		return long_value;
	}

	public void long_value (int _x)
	{
		discriminator = true;
		long_value = _x;
	}

	public float float_value ()
	{
		if (discriminator != false)
			throw new org.omg.CORBA.BAD_OPERATION();
		return float_value;
	}

	public void float_value (float _x)
	{
		discriminator = false;
		float_value = _x;
	}

}
